<template>
  <div id="app">
    <div v-if="this.$route.path!=='/home'" >
      <Header></Header>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
import Header from "@/components/Header";

export default {
  data(){
    return{
      flag:true
    }
  },
  components:{
    Header
  },
  created() {

    if (this.$cookies.get("token") === null){
      this.$router.push({path:'/home'})
    }else{
      this.$router.push({path:'/from'})
    }

  },



}

</script>

<style>

</style>

